package com.yh.common;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author yh
 */
public class DateUtil {
    private  final static String TIME_YYYY_MM_DD = "yyyy-MM-dd HH:mm:ss";

    public static String getTime(Date date){
        SimpleDateFormat sdf = new SimpleDateFormat(TIME_YYYY_MM_DD);
        return sdf.format(date);
    }
}
